Storage system for a storage pool and virtual volumes

ABSTRACT

This invention provides a storage system to store data used by computers. A storage system coupled to a computer and a management apparatus, includes storage devices accessed by the computer and a control unit that controls the storage devices, in which the control unit performs the following operations: setting, in the storage devices, a first virtual device including a first logical device; setting a second virtual device which including a second logical device, which is a virtual volume accessed by the computer; allocating an address of the first logical device to the second logical device; and changing the allocation to change storage areas of the virtual volume.

CLAIM OF PRIORITY

The present application claims priority from Japanese applicationP2005-162448 filed on Jun. 2, 2005 and is a continuation application ofU.S. application Ser. No. 12/915,476, filed Oct. 29, 2010 which is adivisional application of U.S. patent application Ser. No. 11/202,033,filed Aug. 12, 2005, the contents of which are hereby incorporated byreference into this application.

BACKGROUND

This invention relates to a storage system to store data used bycomputers and, and more specifically to a storage system that allows thecapacity of storage accessed by computers to be changed.

The storage capacity of a conventional storage system depends on thecapacity of disk drives or other similar physical devices installed inthe system. Therefore, when required to have a large storage capacity, astorage system has to be equipped with an accordingly large number ofphysical devices. While there is a demand for a large storage capacity,users also make a conflicting demand for reduction in cost and size.

Here comes an urgent need to develop a mechanism that enables a storagesystem to change its storage capacity dynamically. One of methods knownto be useful in building such a storage system is automatic storagedevice capacity expansion (see JP 2003-15915 A, for example). In thismethod, a logical block address in a read or write I/O request at whicha host computer accesses a logical volume of a storage device ismonitored. Then, with the obtained logical block address as the key, thestorage area of the logical volume is dynamically expanded. This methodalso allows a command unit of a host computer to send a logical volumecapacity reduction/expansion instruction to a volume server, which thenreduces/expands the storage area of the logical volume.

SUMMARY

The prior art publication discloses that the capacity of a deviceaccessed by a host computer can be changed dynamically, but not how thetechnique is applied. In particular, the prior art publication does notdisclose how logical volumes are set in virtual volumes and how the setvolumes are to be utilized in the case where virtual volumes areutilized for a storage system.

This invention has been made in view of the above problems, and it istherefore an object of this invention to provide a computer systemcapable of changing the storage capacity of a storage system thatutilizes virtual volumes.

According to an embodiment of this invention, there is provided astorage system connected to a computer and a management apparatus,including storage devices accessed by the computer and a control unitthat controls the storage devices, in which the control unit performsthe following operations: setting, in the storage devices, a firstvirtual device containing a first logical device; setting a secondvirtual device which containing a second logical device, which is avirtual volume accessed by the computer; allocating an address of thefirst logical device to the second logical device; and changing theallocation to change storage areas of the virtual volume.

According to this invention, the storage areas of virtual volumesaccessed by computers can be changed dynamically by changing allocationof logical volumes to the virtual volumes and thus giving the virtualvolumes different storage areas. This makes it possible to set virtualvolumes whose capacity exceeds the total storage capacity of physicaldevices provided in a storage system, and enhances the degree of freedomto access data in a computer system.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a configuration block diagram of a computer system accordingto a first embodiment of this invention.

FIG. 2 is an explanatory diagram of a storage area in the computersystem according to the first embodiment of this invention.

FIG. 3 is a block diagram of a memory according to the first embodimentof this invention.

FIG. 4 is a configuration block diagram of a storage system managementapparatus according to the first embodiment of this invention.

FIG. 5 is an explanatory diagram of volumes and LDEVs according to thefirst embodiment of this invention.

FIG. 6 is a flow chart for setting a VDEV according to the firstembodiment of this invention.

FIG. 7 is a flow chart for setting an LDEV according to the firstembodiment of this invention.

FIG. 8 is an explanatory diagram of VDEV management informationaccording to the first embodiment of this invention.

FIG. 9 is an explanatory diagram of LDEV management informationaccording to the first embodiment of this invention.

FIG. 10 is an explanatory diagram of an address management tableaccording to the first embodiment of this invention.

FIG. 11A is a flow chart for a modification example of setting a VDEVand an LDEV according to the first embodiment of this invention.

FIG. 11B is a flow chart for the modification example of setting a VDEVand an LDEV according to the first embodiment of this invention.

FIG. 12A is a flow chart for setting a storage pool according to thefirst embodiment of this invention.

FIG. 12B is a flow chart for setting a storage pool according to thefirst embodiment of this invention.

FIG. 13 is an explanatory diagram of POOL management informationaccording to the first embodiment of this invention.

FIG. 14 is an explanatory diagram of VVOL-DIR and PSCB according to thefirst embodiment of this invention.

FIG. 15 is an explanatory diagram of an example of how PSCBs are linkedaccording to the first embodiment of this invention.

FIG. 16 is an explanatory diagram of another example of how PSCBs arelinked according to the first embodiment of this invention.

FIG. 17 is a flow chart for setting a virtual volume according to thefirst embodiment of this invention.

FIG. 18 is a flow chart for defining a path according to the firstembodiment of this invention.

FIG. 19 is an explanatory diagram of target device information accordingto the first embodiment of this invention.

FIG. 20 is a flow chart for expansion of a storage pool according to thefirst embodiment of this invention.

FIG. 21 is a flow chart for scale down of a storage pool according tothe first embodiment of this invention.

FIG. 22 is a flow chart for elimination of a storage pool according tothe first embodiment of this invention.

FIG. 23A is a flow chart for a read request according to the firstembodiment of this invention.

FIG. 23B is a flow chart for a read request according to the firstembodiment of this invention.

FIG. 24A is a flow chart for a write request according to the firstembodiment of this invention.

FIG. 24B is a flow chart for a write request according to the firstembodiment of this invention.

FIG. 24C is a flow chart for a write request according to the firstembodiment of this invention.

FIG. 25 is a flow chart of disk failure processing according to thefirst embodiment of this invention.

FIG. 26 is a flow chart of disk recovery processing according to thefirst embodiment of this invention.

FIG. 27 is an explanatory diagram of a storage pool and a system areaaccording to a second embodiment of this invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Embodiments of this invention will be described below with reference tothe accompanying drawings.

First Embodiment

FIG. 1 is a configuration block diagram of a computer system accordingto a first embodiment of this invention.

The computer system of this embodiment has a host computer 10 and astorage system management apparatus 20 which are connected to a storagesystem 30.

The host computer 10 accesses data in the storage area of the storagesystem 30. The storage system management apparatus 20 manages theconfiguration of the storage area of the storage system 30. The storagesystem 30 has physical devices 34, 34, 34 . . . , and stores data instorage areas set in the physical devices 34, 34, 34 . . . .

The host computer 10 has an input unit 110, an output unit 120, a CPU130, a memory 140, a disk adapter 150, a network adapter 160 and a diskdrive 170.

The input unit 110 accepts an input made by an administrator or the likewho operates the host computer 10. The input unit 110 is, for example, akeyboard. The output unit 120 is a unit that displays the state andsetting items of the host computer 10. The output unit 120 is, forexample, a display device.

The CPU 130 reads a program stored in the disk drive 170 and loads theprogram into the memory 140 to execute processing prescribed in theprogram. The memory 140 is, for example, a RAM, and stores a program,data, and the like.

The disk adapter 150 is connected to the storage system 30 via a storagenetwork 50 to exchange data with the storage system 30. A protocolsuitable for data transfer (Fibre Channel, for example) is employed forthe storage network 50.

The network adapter 160 exchanges data with the storage systemmanagement apparatus 20 or with the storage system 30 via a managementnetwork 40. The management network 40 is, for example, Ethernet.

The disk drive 170 is, for example, a hard disk, and stores data and aprogram.

The storage system management apparatus 20 has an input unit 210, anoutput unit 220, a CPU 230, a memory 240, a network adapter 250 and adisk drive 260.

The input unit 210 accepts an input made by an administrator or the likewho operates the storage system management apparatus 20. The input unit210 is, for example, a keyboard. The output unit 220 is a unit thatdisplays the state and setting items of the storage system managementapparatus 20. The output unit 220 is, for example, a display device.

The CPU 230 reads a program stored in the disk drive 260 and loads theprogram into the memory 240 to execute processing prescribed in theprogram. The memory 240 is, for example, a RAM, and stores a program,data, and the like.

The network adapter 250 exchanges data with the host computer 10 or withthe storage system 30 via the management network 40.

The disk drive 260 is, for example, a hard disk, and stores data and aprogram.

The storage system 30 has a control unit 31, a storage cache memory 32,a shared memory 33, the physical devices (PDEVs) 34, 34, 34 . . . , apower supply switch 35 and a power supply 36.

The control unit 31 controls which data is to be stored in which storagearea set in the PDEVs 34, 34, 34 . . . .

The storage cache memory 32 temporarily stores data to be read out orwritten in the PDEVs 34, 34, 34 . . . . The shared memory 33 storesconfiguration information of the control unit 31 and the PDEVs 34, 34,34 . . . .

The PDEVs 34, 34, 34 . . . includes plural disk devices.

The power supply 36 supplies electric power to each component of thestorage system 30. The power supply switch 35 is a switch to turn on/offa supply of electric power from the power supply 36.

The control unit 31 has a host adapter 310, a network adapter 320, anon-volatile memory 330, a power supply control unit 340, a memory 350,a processor 360, a storage adapter 370 and a shared memory adapter 380.

The host adapter 310 exchanges data with the host computer 10 via thestorage network 50. The network adapter 320 exchanges data with the hostcomputer 10 or with the storage system management apparatus 20 via themanagement network 40.

The non-volatile memory 330 is, for example, a hard disk or a flashmemory, and stores a program run on the control unit 31, configurationinformation, and the like.

The power supply control unit 340 controls electric power supplied fromthe power supply 36.

The memory 350 is, for example, a RAM, and stores a program, data, andthe like.

The processor 360 reads a program stored in the non-volatile memory 330and loads the program into the memory 350 to execute processingprescribed in the program.

The storage adapter 370 exchanges data with the PDEVs 34, 34, 34 . . .and with the storage cache memory 32.

The shared memory adapter 380 exchanges data with the shared memory 33.

A storage pool according to this embodiment is described next.

FIG. 2 is an explanatory diagram of a storage area in the computersystem according to this embodiment.

The host computer 10 accesses a storage area at a volume of the storagesystem 30. One of LDEVs is set to the volume.

In the storage system 30, the PDEVs 34, 34, 34 . . . take a RAIDconfiguration to constitute a RAID group. The RAID group constitutes avirtual device (VDEV) 400 (S101). The VDEV 400 is divided into plurallogical devices (LDEVs) 500, 500, 500 . . . , which are storage areas.

The VDEV constituted of the PDEVs 34, 34, 34 . . . will hereinafter becalled as a “first type VDEV”. LDEVs contained in the first type VDEVwill hereinafter be called as “first type LDEVs”.

Access from the host computer 10 is directed at a volume of the storagesystem 30. A volume recognized by the host computer 10 is called as a“target device”. A target device, which is denoted by 700, is set in avolume containing the first type LDEV 500 by defining a path to the hostcomputer 10 (S102).

An external device 600 connected to the storage system 30 from theoutside may be treated like the PDEV 34. In this case, plural externaldevices (EDEVs) 600, 600, 600 . . . take a RAID configuration toconstitute plural first type VDEVs 400, 400, 400 . . . (S103). The firsttype VDEVs 400, 400, 400 . . . are divided into one or more first typeLDEVs 500, 500, 500 . . . , which are storage areas. A path to the hostcomputer 10 is set to the first type LDEV 500, thereby setting thetarget device 700 (S104).

A second type VDEV 401 may be set in the storage system 30. The secondtype VDEV is, unlike the first type VDEV constituted of the PDEVs 34,34, 34 . . . , a virtual device that has an address and an area but notareas corresponding to the PDEVs 34, 34, 34 . . . . Instead, the secondtype VDEV can have a corresponding cache memory area. The second typeVDEV 401 is broken into one or more LDEVs, which are called as secondtype LDEVs and denoted by 501.

A target device 701 is set by setting a path to the host computer 10 tothe second type LDEV 501 (S110). This target device is called as avirtual volume.

The second type VDEV and the second type LDEVs are not physicalentities. In order for the host computer 10 to be able to use the secondtype VDEV and LDEVs, the second type LDEVs have to be associated with astorage pool.

A storage pool is built by setting the above-described first type LDEV500 as an attribute of the storage pool (S112). The first type LDEV 500set to the storage pool is associated with the second type LDEV 501 andthe address is mapped (S111). This enables the host computer 10 to usesecond type LDEVs, which are storage areas of a virtual volume. Mappingfirst type LDEVs and second type LDEVs differently makes a change instorage area of a virtual volume.

Hereinafter, a reference to “VDEV” without a mention of a type includesfirst type VDEV and second type VDEV both. Similarly, a reference to“LDEV” without a mention of a type includes first type LDEV and secondtype LDEV both.

FIG. 3 is a block diagram of the memory 350 in the control unit 31 ofthe storage system 30.

The memory 350 stores various programs read and executed by theprocessor 360, configuration information 351 related to settings ofLDEVs, and pool information 352 related to settings of a storage pool.

A command control program 3501 interprets a command from the hostcomputer 10 or the storage system management apparatus 20, and executesprocessing prescribed in the command.

A path control program 3502 sets a path to the host computer 10.

A configuration control program 3503 controls the configuration of thestorage system 30.

A host adapter control program 3504 controls data inputted and outputtedby the host adapter 310.

A disk I/O program 3505 controls access to the PDEVs 34, 34, 34 . . . .

A network control program 3506 controls data sent and received via thestorage network 50 or the management network 40.

A pool control program 3507 sets a storage pool.

A power supply control program 3508 controls turn on/off of electricpower supplied by the power supply 36.

A cache control program 3509 controls the area and data of the storagecache memory 32.

A drive diagnostic program 3510 diagnoses the state of each disk devicelisted as the PDEVs 34, 34, 34 . . . .

The configuration information 351 holds settings related to VDEVs andLDEVs of the storage system 30.

The pool information 352 holds settings related to a storage pool.

The configuration information 351 contains an address management table3511, LDEV management information 3512, target device information 3513and VDEV management information 3514.

The address management table 3511 holds mapping information in whichaddresses of target devices, LDEVs, VDEVs, and physical devices aremapped out. The address management table 3511 includes targetdevice-LDEV mapping information 35111, LDEV-VDEV mapping information35112 and VDEV-PDEV mapping information 35113.

The LDEV management information 3512 holds information related to LDEVs.

The target device management information 3513 holds information of LDEVsin a volume to which a path to the host computer 10 is set.

The VDEV management information 3514 holds information related tovirtual logical volumes.

The pool information 352 contains POOL management information 3521,POOL-VOL management information 3522, VVOL-DIR 3523, PSCB 3524, andsystem area information 3525.

The POOL management information 3521 holds settings of a storage pool.The POOL-VOL management information 3522 holds information on volumes ofa storage pool. The VVOL-DIR 3523 holds allocation of addresses of LDEVsof a storage pool. The PSCB 3524 holds information on addresses of LDEVsof a storage pool. The system area information 3525 holds information ofLDEVs where configuration information of the storage system 30 isstored.

FIG. 4 is a more detailed block diagram showing the configuration of thestorage system management apparatus 20.

The storage system management apparatus 20 has, as described above, theinput unit 210, the output unit 220, the CPU 230, the memory 240, thenetwork adapter 250 and the disk drive 260.

The input unit 210 has an input device 211. The output unit 220 has anoutput device 221.

The memory 240 has a semiconductor memory 241. The disk drive 260 has anoptical disk drive 242 and a magnetic disk drive 243.

The CPU 230 reads a program or configuration information from theoptical disk drive 242 or from the magnetic disk drive 243, and loadsthe program or the configuration information into the semiconductormemory 241 to execute processing prescribed in the program.

The input unit 210, the output unit 220, the CPU 230, the memory 240,the network adapter 250 and the disk drive 260 are connected to oneanother by a bus 270.

Programs and data loaded into and run on the memory 240 include storagesystem configuration information 2401, a storage system managementprogram 2402, a storage system management server program 2403, a storageconfiguration management program 2404, a POOL management program 2405, astorage system maintenance program 2406 and an OS 2407.

The OS 2407 is the basic program of the storage system managementapparatus 20. The rest of the programs are run on the OS 2407.

The storage system configuration information 2401 holds information onthe configuration of the storage system 30.

The storage system management program 2402 manages the configuration ofa storage constituted of logical volumes set in the storage system 30.

The storage system management server program 2403 receives a command tomanage the configuration of a storing unit constituted of logicalvolumes set in the storage system 30.

The storage configuration management program 2404 manages theconfiguration of the storage system 30. Configuration informationcreated through the operation of the storage configuration managementprogram 2404 is stored as the storage system configuration information2401.

The POOL management program 2405 manages the configuration of a storagepool of the storage system 30.

The storage system maintenance program 2406 maintains the storage system30.

With those programs, the storage system management apparatus 20 sets andchanges the configuration of the storage system 30 and maintains thestorage system 30.

The programs and information stored in the memory 240 may instead bestored in the memory 140 of the host computer 10. In other words,programs stored in the host computer 10 may execute processing ofsetting or changing the configuration of the storage system 30.

In this case, the host computer 10 sends a command to a command deviceof the storage system 30. The command device is one of target devices ofthe storage system 30 that is chosen in advance. Receiving an I/Orequest directed to the command device from the host computer 10, thestorage system 30 interprets the I/O request as an instruction command.

FIG. 5 is an explanatory diagram of target devices, LDEVs, and PDEVs.

The host computer 10 accesses the target device 700 set in the storagesystem 30. The storage area of the target device 700 is the first typeLDEV 500 set as the target device 700.

The first type LDEV 500 is an area of the first type VDEV 400, which isconstituted of physical volumes assuming a RAID configuration. The firsttype VDEV 400 is divided into one or more first type LDEVs 500, 500, 500. . . .

The host computer 10 accesses, as the target device 701, a virtualvolume set in the storage system 30. The storage area of the targetdevice 701 is the second type LDEV 501.

The second type LDEV 501 is associated with the first type LDEV 500 setas a storage pool.

The host computer 10 accesses the target device 701, which is a virtualvolume. The storage area of the virtual volume is the second type LDEV501. When a request to access the second type LDEV 501 is received, thestorage system 30 consults the address management table 3511 and changesthe device to be accessed to the first type LDEV 500 that is associatedwith the second type LDEV 501.

FIG. 6 is a flow chart for setting a VDEV.

First, the storage configuration management program 2404 searches thestorage system configuration information 2401 for the number of anundefined VDEV (VDEV #) (a step S1001).

The administrator operates the input unit 210 to set information of theVDEV. The administrator sets information necessary to set a first typeVDEV or a second type VDEV. To set a first type VDEV, information on aRAID group of the PDEVs 34, 34, 34 . . . to be set to the first typeVDEV and its emulation type are designated. To set a second type VDEV,an emulation type and a size are designated (a step S1002).

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to create aVDEV. The created instruction command is sent to the storage system 30via the network adapter 250 (a step S1003).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S1004). The commandcontrol program 3501 checks what is instructed by the receivedinstruction command. In the case where the instruction is not valid, theinstruction command is rejected (a step S1005).

When a received instruction command is about setting a VDEV, the commandcontrol program 3501 forwards the received instruction command to theconfiguration control program 3503. The configuration control program3503 receives the instruction command and executes VDEV creatingprocessing (a step S1006).

The configuration control program 3503 checks whether or not the VDEVnumber to which the instruction command is addressed is already in use(a step S1007). In the case where the VDEV number to which theinstruction command is addressed is already in use, the instructioncommand is rejected.

Next, the configuration control program 3503 newly creates VDEV-specificinformation to be contained in the VDEV management information 3514.Information of the VDEV to be created as instructed by the instructioncommand is set to this VDEV-specific information. Specifically, when theVDEV to be created as instructed by the instruction command is a firsttype VDEV, the total size, the remaining size, and an emulation type areset to the VDEV-specific information based on the capacity of thedesignated RAID group. When the VDEV to be created as instructed by theinstruction command is a second type VDEV, the designated size andemulation type are set to the VDEV-specific information and “virtualvolume” is set as a device attribute (a step S1008). In this way, theVDEV to be created as instructed by the instruction command is set. Toset this VDEV in a virtual volume, “virtual volume” is set as a deviceattribute.

Upon completion of the VDEV creating processing, the command controlprogram 3501 notifies the storage system management apparatus 20 of thesuccess of the command (a step S1009).

Received response from the storage system 30 (a step S1010), the storageconfiguration management program 2404 of the storage system managementapparatus 20 ends the processing.

A VDEV is set through this processing.

FIG. 7 is a flow chart for setting an LDEV.

This processing is to set an LDEV, which is a storage area, in a VDEV.The VDEV in this processing may be the one set by the processing of FIG.6, or may be an existing VDEV. The LDEV to be set may be a first typeLDEV or a second type LDEV.

First, the storage configuration management program 2404 obtains thenumber of the VDEV (VDEV #) in which the LDEV is to be set (a stepS1101). The VDEV number is the one set in the processing of FIG. 6 andis automatically set by the storage configuration management program2404. Alternatively, the administrator designates a VDEV number that hasalready been set.

Next, the administrator operates the input unit 210 to designateinformation of the LDEV to be set. Specifically, information includingthe number of the LDEV to be set, the VDEV number, the head slot numberof the VDEV, and the end slot number of the VDEV is set (a step S1102).

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to set theLDEV. The created instruction command is sent to the storage system 30via the network adapter 250 (a step S1103).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S1104). The commandcontrol program 3501 checks what is instructed by the receivedinstruction command. In the case where the instruction is not valid, theinstruction command is rejected (a step S1105).

When a received instruction command is about setting an LDEV, thecommand control program 3501 forwards the received instruction commandto the configuration control program 3503. The configuration controlprogram 3503 receives the instruction command and executes LDEV settingprocessing (a step S1106).

The configuration control program 3503 checks whether or not the VDEVnumber designated in the instruction command is already in use (a stepS1107). In the case where the VDEV number designated in the instructioncommand is already in use, the instruction command is rejected.

Next, the configuration control program 3503 obtains, from the VDEVmanagement information 3514, the total size of the VDEV designated inthe instruction command. The configuration control program 3503 checkswhether or not the size of the LDEV to be set as instructed by theinstruction command can be defined in the VDEV (a step S1108). The sizeof the LDEV is calculated from the head slot number and the end slotnumber that are contained in the instruction command. In the case wherethe size of the LDEV cannot be defined, the instruction command isrejected.

The configuration control program 3503 then obtains, from theVDEV-specific information, the emulation type of the VDEV designated inthe instruction command. The obtained emulation type is set as theemulation type of the LDEV to be set as instructed by the instructioncommand (a step S1109).

Next, the configuration control program 3503 sets LDEV-specificinformation for the LDEV number designated in the instruction command,and also sets VDEV-specific information for the VDEV number designatedin the instruction command (a step S1110).

Specifically, the configuration control program 3503 newly createsLDEV-specific information for the LDEV number designated in theinstruction command. The LDEV number, a head slot number, an end slotnumber, and a device attribute are defined and set to the LDEV-specificinformation. In the case where the LDEV to be set through thisprocessing is a second type LDEV, “second type LDEV” is set as a deviceattribute. After the LDEV-specific information is set, VDEV-specificinformation is set for the VDEV number designated in the instructioncommand. Specifically, the count of set LDEVs is added up, and the LDEVnumber designated in the instruction command, the remaining size, a headLDEV slot, and an end LDEV slot are set. In this way, the LDEV to be setas instructed by the instruction command is set in the VDEV.

Upon completion of the LDEV setting processing, the command controlprogram 3501 notifies the storage system management apparatus 20 of thesuccess of the command (a step S1111).

Received response from the command by the storage system 30 (a stepS1112), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

An LDEV is set in a VDEV through this processing.

FIG. 8 is an explanatory diagram of VDEV management information.

VDEV management information includes VDEV-specific information 35141.

The VDEV-specific information 35141 contains a VDEV number (VDEV #)35142, an emulation type 35143, a total size 35144, a remaining size35145, a device attribute 35146, a device state 35147, a set LDEV count35148, an LDEV number 35149, a head VDEV-SLOT # 35150 and an endVDEV-SLOT # 35151.

Stored as the VDEV # 35142 is the identifier of a VDEV. Stored as theemulation type 35143 is the emulation type identifier of the VDEV. Thetotal size 35144 indicates a total size set to the VDEV. The remainingsize 35145 indicates the size of an unused area of the VDEV.

Stored as the device attribute 35146 is the identifier of an attributeset to the VDEV. In the case where the VDEV is a first type VDEV, anidentifier showing that it is a first type VDEV and not a second typeVDEV is stored as the device attribute 35146. In the case where the VDEVis a second type VDEV and is set in a virtual volume, an identifiershowing that it is a second type VDEV and not a first type VDEV isstored as the device attribute 35146.

Stored as the device state 35147 is an identifier representing the stateof the VDEV. A VDEV can be in a normal state, a blocked state, afailure-induced blocked state, and the like. The term “block” refers toblockage due to other factors than an occurrence of a failure such as apuncture block. The term “failure-induced block” refers to blockage dueto a failure in one of the devices.

The set LDEV count 35148 indicates the total count of LDEVs set in theVDEV. Stored as the LDEV number 35149 is a number assigned to the LDEVthat is set in the VDEV. Stored as the head VDEV-SLOT # 35150 is theidentifier of a physical head slot number of an LDEV that is set in theVDEV. Stored as the end VDEV-SLOT # 35151 is the identifier of aphysical end slot number of an LDEV that is set in the VDEV. The LDEVnumber 35149, the head VDEV-SLOT # 35150 and the end VDEV-SLOT # 35151are set for each of the LEDV numbers of the set LDEVs which are as manyas indicated by the set LDEV count 35148.

FIG. 9 is an explanatory diagram of LDEV management information.

LDEV management information includes LDEV-specific information 35121.

The LDEV-specific information 35121 contains an LDEV number (LDEV #)35122, an emulation type 35123, a size 35124, a head slot number 35125,an end slot number 35126, path definition information 35127, a deviceattribute 35128, a device state 35129, a program use state 351300 and aPOL-ID 351301.

Stored as the LDEV # 35122 is the identifier of an LDEV. Stored as theemulation type 35123 is the emulation type identifier of the LDEV. Thesize 35124 indicates a total size set to the LDEV.

Stored as the head slot number 35125 is the identifier of a head slotnumber of the set LDEV. Stored as the end slot number 35126 is theidentifier of a final slot number of the set LDEV. Stored as the pathdefinition information 35127 is the identifier of a path defined in thehost computer 10.

Stored as the device attribute 35128 is the identifier of an attributeof the LDEV. When the LDEV is a first type LDEV, an identifier showingthat it is a first type LDEV and not a second type LDEV is stored as thedevice attribute 35128. When the LDEV is a second type LDEV, anidentifier showing that it is a second type LDEV and not a first typeLDEV is stored as the device attribute 35128. In the case where the LDEVis set in a storage pool, an identifier indicating a pool attribute isstored as the device attribute 35128.

Stored as the device state 35129 is an identifier representing the stateof the VDEV to which the LDEV identified by the LDEV number 35122belongs. A VDEV can be in a normal state, a blocked state, afailure-induced blocked state, and the like. The term “block” refers toblockage due to other factors than an occurrence of a failure such as apuncture block. The term “failure-induced block” refers to blockage dueto a failure in one of the devices.

While the LDEV is being processed by one of the programs, the identifierof this program is stored as the program use state 351300. In the casewhere the LDEV is set in a storage pool, the identifier of the storagepool is stored as the POOL-ID 351301.

FIG. 10 is an explanatory diagram of the address management table.

The address management table 3511 holds mapping information in whichaddresses of target devices, LDEVs, VDEVs, and physical devices aremapped out.

The address management table 3511 includes the target device-LDEVmapping information 35111, the LDEV-VDEV mapping information 35112 andthe VDEV-PDEV mapping information 35113.

The target device-LDEV mapping information 35111 holds the associationbetween a target device address and an LDEV address.

The LDEV-VDEV mapping information 35112 holds LDEV addresses and VDEVaddresses.

The VDEV-PDEV mapping information 35113 holds VDEV addresses, the numberof a RAID group of a VDEV (or a parity group), and PDEV addresses.

The storage system 30 consults the address management table to knowwhich address of which LDEV a target device address is associated with.Which address of which VDEV an LDEV address is associated with can alsobe known by consulting the address management table. Furthermore,consultation with the address management table informs to which RAIDgroup a VDEV address belongs as well as which address of which PDEV theVDEV address is associated with.

FIGS. 11A and 11B are flow charts for another example of setting a VDEVand an LDEV.

The flow charts show processing of setting a VDEV and an LDEV whosedevice attribute is “virtual volume” by executing the above-describedprocessing of FIGS. 6 and 7 at once.

First, the administrator operates the input unit 210 to set a numberassigned to a VDEV that is to be set by this processing, a numberassigned to an LDEV that is to be set by this processing, an emulationtype to be set to the VDEV, the size of the LDEV, a head slot number, anend slot number, and a type (the first type or the second type) (a stepS1201).

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to set theLDEV. The created instruction command is sent to the storage system 30via the network adapter 250 (a step S1202).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S1203). The commandcontrol program 3501 checks what is instructed by the receivedinstruction command. In the case where the instruction is not valid, theinstruction command is rejected (a step S1204).

When a received instruction command is about setting a VDEV, the commandcontrol program 3501 forwards the received instruction command to theconfiguration control program 3503. The configuration control program3503 receives the instruction command and executes VDEV settingprocessing (a step S1205).

Referring now to FIG. 11B, the configuration control program 3503 checksthe VDEV number designated in the instruction command. In the case wherethe VDEV number designated in the instruction command is invalid, theinstruction command is rejected (a step S1206).

The configuration control program 3503 then checks the LDEV numberdesignated in the instruction command. In the case where the LDEV numberdesignated in the instruction command is invalid, the instructioncommand is rejected (a step S1207).

Next, the configuration control program 3503 consults the LDEVmanagement information 3512 to check whether LDEV-specific informationhas been defined for the LDEV number designated in the instructioncommand. In the case where the LDEV-specific information has alreadybeen defined, the instruction command is rejected (a step S1208).

The configuration control program 3503 next consults the VDEV managementinformation 3514 to obtain the remaining size from the VDEV-specificinformation for the VDEV number designated in the instruction command,and to check whether the remaining size is enough to define the LDEV asinstructed by the instruction command. In the case where the remainingcapacity is not enough, the instruction command is rejected (a stepS1209).

The configuration control program 3503 next checks the head slot numberand the end slot number that are designated in the instruction commandin order to determine whether the LDEV can be defined within the addressrange of the VDEV to be set as instructed by the instruction command. Inthe case where the LDEV cannot be defined in the range, the instructioncommand is rejected (a step S1210).

The configuration control program 3503 next sets LDEV-specificinformation for the LDEV number designated in the instruction command (astep S1211). Specifically, the configuration control program 3503 newlycreates LDEV-specific information for the LDEV number designated in theinstruction command. The LDEV number, a head slot number, an end slotnumber, and a device attribute are defined and set to the LDEV-specificinformation. In the case where the LDEV to be set through thisprocessing is a second type LDEV, “second type LDEV” is set as a deviceattribute.

After the LDEV-specific information is set, VDEV-specific information isset for the VDEV number designated in the instruction command (a stepS1212). Specifically, the count of set LDEVs is added up, and the LDEVnumber designated in the instruction command, the remaining size, a headLDEV slot, and an end LDEV slot are set.

In this way, the LDEV to be set as instructed by the instruction commandis set in the VDEV.

Returning to FIG. 11A, the command control program 3501 notifies, uponcompletion of the LDEV setting processing, the storage system managementapparatus 20 of the success of the command (a step S1215).

Notified of the success of the command from the storage system 30 (astep S1216), the storage configuration management program 2404 of thestorage system management apparatus 20 ends the processing.

A VDEV and an LDEV whose device attribute is “virtual volume” are setthrough this processing.

The description given next is how a storage pool is set.

As described above, the storage system 30 sets an LDEV in a storage pooland sets the LDEV as the storage area of a virtual volume.

FIGS. 12A and 12B are flow charts for setting a storage pool.

Processing of setting a storage pool is executed by the storageconfiguration management program 2404 of the storage system managementapparatus 20.

First, the administrator inputs information on a first type LDEV to beset in a storage pool. The administrator operates the input unit 210 toset a POOL-ID, which is the identifier of a storage pool, a threshold,an LDEV count, and an LDEV number (a step S2001). An LDEV set in astorage pool has to be a first type LDEV, which is a physical device.

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to set astorage pool. The created instruction command is sent to the storagesystem 30 via the network adapter 250 (a step S2002).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S2003).

The command control program 3501 checks what is instructed by thereceived instruction command. In the case where the instruction is notvalid, the instruction command is rejected (a step S2004).

When a received instruction command is about setting a storage pool, thecommand control program 3501 forwards the received instruction commandto the pool control program 3507. The pool control program 3507 receivesthe instruction command and executes storage pool setting processing (astep S2005).

Referring now to FIG. 12B, the pool control program 3507 first checkswhether the POOL-ID designated in the instruction command is valid ornot, and whether or not the POOL-ID has yet been defined (a step S2006).

Next, the pool control program 3507 obtains, from the POOL managementinformation 3521, POOL-specific information for the POOL-ID designatedin the instruction command, and changes the state from “POOL undefined”to “POOL being defined” (a step S2007).

The pool control program 3507 next checks whether the LDEV numberdesignated in the instruction command can be put into use or not (a stepS2008). Specifically, in the case where the LDEV that is identified bythe LDEV number designated in the instruction command is blocked orbeing formatted, the LDEV cannot be put into use and accordingly theinstruction command is rejected (a step S2009). The LDEV is notavailable and the instruction command is rejected also when the LDEVthat is identified by the LDEV number designated in the instructioncommand is already in use (for example, when a path has already beendefined for the LDEV, when the copy function or the like is using theLDEV, or when the LDEV is reserved to be copied a data next) (a stepS2010).

The pool control program 3507 next sets, to the POOL-specificinformation, the capacity, the free capacity, a threshold, a POOL-VOLcount, and a POOL-VOL device list (a step S2011). Then the PSCB 3524 isallocated to the first type LDEV that is set in the storage pool (a stepS2012). The PSCB 3524 will be described with reference to FIG. 14.

A first type LDEV is set in a storage pool through this processing ofthe pool control program 3507.

After the storage pool is set, the configuration control program 3503sets the LDEV management information 3512 (a step S2013). Specifically,the configuration control program 3503 consults the LDEV managementinformation 3512 to obtain LDEV-specific information of the LDEV that isset in the storage pool. An identifier indicative of a storage pool(POOL-VOL attribute) is set as the device attribute 35128 of theobtained LDEV-specific information. The POOL-ID designated in theinstruction command is set as the POOL-ID 351301 of the obtainedLDEV-specific information.

Next, the configuration control program 3503 sets the state of thePOOL-ID as “POOL valid” in the POOL management information 3521 (a stepS2014). Then the storage system management apparatus 20 is notified ofthe success of the command (a step S2015).

Received response from the command by the storage system 30 (a stepS2016), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

A first type LDEV is set in a storage pool through this processing.

FIG. 13 is an explanatory diagram of POOL management information.

The POOL management information 3521 includes POOL-specific information35211.

The POOL-specific information 35211 contains a POOL-ID 35212, anattribute/use 35213, an emulation type 35214, a capacity 35215, a freecapacity 35216, a threshold 35217, a state 35218, a POOL-VOL count35219, a POOL-VOL device number list 35220, a POOL utilizing devicecount 35221, and a POOL utilizing device number 35222.

A POOL identifier is stored as the POOL-ID 35212. Stored as theattribute/use 35213 is an identifier indicating the attribute and use ofthe storage pool in question. The attribute of a storage pool refers tothe form of linking of the PSCB 3524 (which will be described later withreference to FIGS. 15 and 16). The use of a storage pool refers to inwhat form the storage pool is run, for example, as a snapshot or as asystem area.

Stored as the emulation type 35214 is an identifier indicating theemulation type of the storage pool. The capacity 35215 indicates thetotal capacity of the storage pool. The free capacity 35216 indicatesthe size of an unused area in the storage pool.

The threshold 35217 indicates the maximum data storing capacity of thestorage pool. The state 35218 indicates the current state of the storagepool, such as “being defined”, “being expanded” and “valid”. ThePOOL-VOL count 35219 indicates the total count of LDEVs that are set asthe storage pool. The POOL-VOL device number list 35220 is a list ofLDEV numbers assigned to the LDEVs that are set as the storage pool. ThePOOL utilizing device count 35221 indicates the count of second typeLDEVs that are associated with the LDEVs of the storage pool. Stored asthe POOL utilizing device number 35222 is a list of LDEV numbersassigned to the second type LDEVs that are associated with the LDEVs ofthe storage pool.

FIG. 14 is an explanatory diagram of the VVOL-DIR 3523 and the PSCB3524.

Stored as the VVOL-DIR 3523 is configuration information of a secondtype LDEV, which is a storage area of a virtual volume. Stored as thePSCB (POOL Slot Control Block) 3524 is configuration information of afirst type LDEV set in a storage pool.

As described, the storage system 30 arranges the PDEVs 34, 34, 34 . . .into a RAID configuration to build a first type VDEV. The first typeVDEV is divided into first type LDEVs, which are storage areas. A firsttype LDEV is set in a storage pool through the processing describedabove with reference to FIGS. 11A and 11B. A volume that is constitutedof a first type LDEV set in a storage pool is referred to as POOL-VOLand denoted by 900.

The storage system 30 also has a second type VDEV, which is set as avirtual volume (VVOL). The second type VDEV is divided into second typeLDEVs, which are storage areas.

The storage system 30 allocates a second type LDEV of a VVOL 800 to afirst type LDEV of the POOL-VOL 900. In this way, a storage area of avirtual volume accessed by the host computer 10 is set in a first typeLDEV constituted of the PDEVs 34, 34, 34 . . . , which are physicaldevices.

The configuration of a VVOL is stored as the VVOL-DIR 3523.

The VVOL-DIR 3523 contains an LDEV number (LDEV #) 35231 and an entry35232.

Stored as the LDEV number (LDEV #) 35231 is the identifier of a secondtype LDEV. The entry 35232 holds configuration information of a secondtype LDEV. The entry 35232 has a second type LDEV address 35233 and aPSCB pointer 35234.

Stored as the second type LDEV address 35233 is the address of a secondtype LDEV of a VVOL.

In the case where the second type LDEV whose address is indicated by thesecond type LDEV address 35233 is allocated to a first type LDEV of thePOOL-VOL 900, a pointer to the area of this first type LDEV is stored asthe PSCB pointer 35234. By default, none of second type LDEVs are set tofirst type LDEVs, and accordingly “NULL” is stored as the PSCB pointer35234.

The PSCB (POOL Slot Control Block) 3524 indicates information of a firsttype LDEV set in a storage pool. The PSCB 3524 is set for each slot of afirst type LDEV that is set in a storage pool.

The PSCB 3524 contains an LDEV number (LDEV #) 35241, a POOL-VOL address35242, a PSCB forward pointer 35243 and a PSCB backward pointer 35244.

Stored as the LDEV number (LDEV #) 35241 is the identifier of a firsttype LDEV in the POOL-VOL 900. The POOL-VOL address 35242 indicates theaddress of the first type LDEV in the POOL-VOL 900.

Stored as the PSCB forward pointers 35243 and the PSCB backward pointers35244 are the identifiers of the front and back slots of the first typeLDEV in the POOL-VOL 900, respectively.

A free PSCB queue 35240 indicates the beginning of an unused area of thePOOL-VOL 900. The free PSCB queue 35240 contains a pointer to the PSCB3524 which indicates the next slot.

The storage system 30 consults a pointer contained in the free PSCBqueue 35240 to obtain the next PSCB 3524. Then the storage system 30consults the PSCB backward pointer 35245 of the next PSCB 3524 to obtainthe subsequent PSCB 3524. The PSCBs 3524, 3524, 3524 . . . are thustraced down one at a time until the PSCB 3524 that corresponds to thefinal slot of the unused area is obtained. The PSCB backward pointer35244 of the final PSCB 3524 is the free PSCB queue 35240. The storagesystem 30 finds out the location of an unused area of the POOL-VOL 900in a storage pool from a group linked by pointers of the PSCBs 3524,3524, 3524 . . . which is obtained by following the free PSCB queue35240.

The PSCB 3524 for a first type LDEV set in a storage pool is set in thestep S2012 of FIG. 12B. Specifically, the PSCB 3524 is set for each slotof a first type LDEV set in a storage pool, and then the free PSCB queue35240 is set. By default, every part of a storage pool is unused and agroup linked by the free PSCB queue 35240 covers all areas of first typeLDEVs set in the storage pool.

The storage system 30 makes an area of a storage pool available byallocating as many PSCBs 3524, 3524, 3524 . . . as the number ofnecessary slots to the VVOL-DIR 3523, which represents configurationinformation of a second type LDEV. Specifically, the storage system 30consults the free PSCB queue 35240 and obtains the PSCBs 3524, 3524,3524 . . . for necessary areas to be allocated to a second type LDEV.Each obtained PSCB 3524 is allocated to an entry of the VVOL-DIR 3523.In other words, in each entry of the VVOL-DIR 3523, a pointer indicatingthe corresponding PSCB 3524 is stored as the PSCB pointer 35234. Onceallocated, the PSCB 3524 is removed from the link of the free PSCB queue35240.

In this way, each slot of a second type LDEV is allocated to the PSCB3524 indicated by the PSCB pointer 35234 in each entry of the VVOL-DIR3523. Since each PSCB 3524 corresponds to a slot of a first type LDEV,this ultimately allocates the second type LDEV to the first type LDEVand makes a virtual volume accessed by the host computer 10 usable as aphysical device.

FIG. 15 is an explanatory diagram of an example of how the PSCBs 3524,3524, 3524 . . . are linked.

There are several ways to link the PSCBs 3524, 3524, 3524 . . . of afirst type LDEV in the POOL-VOL 900.

In the example of FIG. 15, slots of first LDEVs in the same POOL-VOL arelinked sequentially. This method is called sequential linking. Set inthis way, a POOL-VOL obtains a continuous area stretching over firsttype LDEVs. Accordingly, in the case where the host computer 10 storeslarge-sized data that spreads over plural LDEVs in the storage system30, the data can be accessed by accessing only one POOL-VOL and itimproves the access speed.

FIG. 16 is an explanatory diagram of another example of how the PSCBs3524, 3524, 3524 . . . are linked.

In the example of FIG. 16, slots of first type LDEVs scattered overdifferent POOL-VOLs 900, 900, 900 . . . are linked. This method iscalled random linking. With random linking, in the case where the hostcomputer 10 stores many, relatively small pieces of data each of whichdoes not exceed the total capacity of an LDEV in the storage system 30,different first type LDEVs are accessed in parallel and it improves theaccess speed.

Thus the storage system 30 can employ a method of linking PSCB 3524 thatis suited to the type of data to be accessed.

FIG. 17 is a flow chart for setting a second type LDEV.

This processing is to associate a second type LDEV, which is set in avirtual volume, with a storage pool.

This processing is executed by the storage configuration managementprogram 2404 of the storage system management apparatus 20. A secondtype LDEV associated with a storage pool through this processing isallocated to a first type LDEV that is set in a storage pool through theprocessing of FIGS. 11A and 11B, to thereby enable the host computer 10to use a virtual volume as a storage area.

First, the administrator operates the input unit 210 to set a POOL-ID,which is the identifier of a POOL-VOL of a storage pool, and an LDEVnumber of a second type LDEV that is to be associated with the storagepool (a step S3001).

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to associatea storage pool. The created instruction command is sent to the storagesystem 30 via the network adapter 250 (a step S3002).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S3003). The commandcontrol program 3501 checks what is instructed by the receivedinstruction command. In the case where the instruction is not valid, theinstruction command is rejected (a step S3004).

When a received instruction command is about associating a storage pool,the command control program 3501 forwards the received instructioncommand to the pool control program 3507. The pool control program 3507receives the instruction command and executes second type LDEV settingprocessing (a step S3005).

The pool control program 3507 first creates the VVOL-DIR 3523 of thesecond type LDEV that has the LDEV number designated in the instructioncommand (a step S3006). Specifically, the LDEV number is stored as theLDEV # 35231 of the VVOL-DIR 3523. Then the entry 35232 of the VVOL-DIR3523 is created for each slot of the second type LDEV having the LDEVnumber.

Next, the pool control program 3507 consults the LDEV managementinformation 3512 to obtain LDEV-specific information of the second typeLDEV whose LDEV number is designated in the instruction command. ThePOOL-ID designated in the instruction command is set as the POOL-ID351301 of the obtained LDEV-specific information (a step S3007).

The pool control program 3507 next consults the POOL managementinformation 3521 to obtain POOL-specific information for the POOL-IDdesignated in the instruction command (a step S3008). Specifically,information on second type LDEVs contained in a virtual volume that isindicated by the instruction command is set as the POOL utilizing devicecount 35221 and POOL utilizing device number 35222 of the POOL-specificinformation.

After the storage pool is associated, the configuration control program3503 notifies the storage system management apparatus 20 of the successof the command (a step S3009). Received response from the command by thestorage system 30 (a step S3010), the storage configuration managementprogram 2404 of the storage system management apparatus 20 ends theprocessing.

A second type LDEV, which constitutes a virtual volume, is set in astorage pool through this processing.

FIG. 18 is a flow chart for defining a path.

This processing is to set an LDEV (first type or second type) as atarget device of the host computer 10. In the case where a second typeLDEV is set as a target device, the target device is a virtual volume.

This processing is executed by the storage configuration managementprogram 2404 of the storage system management apparatus 20.

First, the administrator operates the input unit 210 to set informationof a target device. Specifically, the administrator sets the port numberof the host adapter 310 connected to the host computer 10, which usesthe target device, a target device number, and one or more LDEV numbers(a step S4001).

The storage configuration management program 2404 creates an instructioncommand containing the information set by the administrator to define apath. The created instruction command is sent to the storage system 30via the network adapter 250 (a step S4002).

In the storage system 30, an instruction command sent from the storagesystem management apparatus 20 is received by the command controlprogram 3501 via the network adapter 320 (a step S4003). The commandcontrol program 3501 checks what is instructed by the receivedinstruction command. In the case where the instruction is not valid, theinstruction command is rejected (a step S4004).

When a received instruction command is about defining a path, thecommand control program 3501 forwards the received instruction commandto the path control program 3502. The path control program 3502 receivesthe instruction command and executes path defining processing (a stepS4005).

The path control program 3502 first checks the state of the LDEV thathas the LDEV number designated in the instruction command (a stepS4006). In the case where the LDEV that has the LDEV number designatedin the instruction command is blocked or being formatted, this LDEVcannot be put into use and therefore the instruction command isrejected.

Next, the path control program 3502 checks the device attribute of theLDEV that has the LDEV number designated in the instruction command (astep S4007). When the device attribute is “POOL-VOL”, this LDEV is setin a storage pool and cannot be accessed from the host computer 10.Accordingly, the instruction command is rejected.

In the case where the instruction command is to be accepted, the pathcontrol program 3502 edits a target device table in the target deviceinformation 3513 for a device number that is assemble from the portnumber designated in the instruction command (a step S4008).

Specifically, the LDEV number designated in the instruction command isstored in the target device table (a step S4009). The capacity of theLDEV that is identified by the LDEV number designated in the instructioncommand is also stored in the target device table (a step S4010). Thenthe state of the target device table is changed to “path defined” (astep S4011), and accepted host information is set (a step S4012).

A path between the host computer 10 and a target device is definedthrough the processing of the path control program 3502.

After the path is defined, the storage system management apparatus 20 isnotified of the success of the command (a step S4013).

Received response from the command by the storage system 30 (a stepS4014), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

A virtual volume is set as a target device through this processing.

FIG. 19 is an explanatory diagram of the target device information 3513.

The target device information 3513 has a target device table 35131,which is set for each port number (port #).

The target device table 35131 contains a port number 35132, a targetdevice number 35133, an LDEV count 35134, an LDEV number 35135, anattribute 35136, a state 35137, a capacity 35138 and an accepted hostinformation 35139.

The port number 35132 indicates the port number of the host adapter 310connected to the host computer 10. Stored as the target device number35133 is the identifier of a target device to be accessed by the hostcomputer 10. The LDEV count 35134 indicates the total count of LDEVs setas target devices. Stored as the LDEV number 35135 is a list of LDEVnumbers that are assigned to LDEVs set as target devices.

Stored as the attribute 35136 is an identifier indicating an attributeof the target device. In the case where an LDEV set as the target deviceis a first type LDEV, an identifier showing that it is a first type LDEVand not a second type LDEV is stored as the attribute 35136. In the casewhere the LDEV is a second type LDEV, an identifier showing that it is asecond type LDEV and not a first type LDEV is stored as the attribute35136. In the case where the target device is the command device, anidentifier showing that it is the command device is stored as theattribute 35136.

The state 35137 indicates the state of the target device, and anidentifier representing the state of a VDEV that is related to thetarget device is stored as the state 35137. A VDEV can be in a normalstate, a blocked state, a failure-induced blocked state, and the like.The capacity 35138 indicates the total capacity of the volume of thetarget device. Stored as the accepted host information 35139 is theidentifier of the host computer 10 that is allowed to access the targetdevice.

The description given next is about changes made to a storage pool.

A first type LDEV is set in a storage pool through the processingdescribed above with reference to FIGS. 12A and 12B. The storage systemmanagement apparatus 20 can make changes to the first type LDEV set inthe storage pool. Changes the first type LDEV receives are, for example,expansion, scale down, and elimination.

FIG. 20 is a flow chart for expansion of a storage pool.

Storage pool expansion is processing to expand the capacity of a storagepool by adding first type LDEVs to the storage pool and thus increasingthe first type LDEV count of the storage pool.

The storage system management apparatus 20 and the command controlprogram of the storage system 30 execute their respective processingdescribed above with reference to FIG. 12A. In the first step of theprocessing, the administrator inputs information on a first type LDEV tobe set in a storage pool for expansion of the storage pool (the stepS2001). The storage configuration management program 2404 sends, to thestorage system 30, an instruction command containing the information setby the administrator to set a storage pool (the step S2002). In thestorage system 30, the command control program 3501 receives thiscommand (the step S2003). The command control program 3501 rejects thereceived instruction command in the case where what is instructed by thecommand is not valid (the step S2004).

When the received instruction command is about expanding a storage pool,the command control program 3501 forwards the received instructioncommand to the pool control program 3507. The pool control program 3507receives the instruction command and executes storage pool expandingprocessing (the step S2005).

Referring now to FIG. 20, the pool control program 3507 first checkswhether the POOL-ID designated in the instruction command is valid ornot. The pool control program 3507 then obtains POOL-specificinformation for the POOL-ID designated in the instruction command fromthe POOL management information 3521 to check whether or not the POOLstate field in the obtained POOL-specific information says “valid” (astep S2106). In the case where the POOL-ID is invalid, or the POOL isnot in a valid state (for example, when the POOL is invalid, beingexpanded, or being scaled down), the instruction command is rejected.

Next, the pool control program 3507 sets “POOL being expanded” to thestate field of the obtained POOL-specific information (a step S2107).

The pool control program 3507 next checks whether the LDEV numberdesignated in the instruction command can be put into use or not (a stepS2108).

Specifically, in the case where the first type LDEV that is identifiedby the LDEV number designated in the instruction command is blocked orbeing formatted, the first type LDEV cannot be put into use andaccordingly the instruction command is rejected (a step S2109).

The first type LDEV that is identified by the LDEV number designated inthe instruction command is not available, so the instruction command isrejected also when the first type LDEV is already in use (for example,when a path has already been defined for the first type LDEV, when thecopy function or the like is using the first type LDEV, or when thefirst type LDEV is reserved for to be copied a data next) (a stepS2110).

When the instruction command is accepted, the pool control program 3507sets, to the POOL-specific information for the POOL-ID designated in theinstruction command, the capacity, the free capacity, a threshold, aPOOL-VOL count, and a POOL-VOL device list (a step S2111). As thePOOL-VOL count, the total count of first type LDEVs after expansion isset to the POOL-specific information. As the POOL-VOL device list,information of first type LDEVs that are added for expansion is added tothe POOL-specific information. Next, the PSCB 3524 is allocated to afirst type LDEV set in the storage pool (a step S2112).

Through this processing of the pool control program 3507, a first typeLDEV designated in an instruction command is added to a storage pool andthe storage pool is thus expanded.

After the storage pool is expanded, the configuration control program3503 sets the LDEV management information 3512 (a step S2113).LDEV-specific information of a first type LDEV that is set in thestorage pool is obtained from the LDEV management information 3512. Anidentifier indicative of a storage pool (POOL-VOL attribute) is set asthe device attribute 35128 of the obtained LDEV-specific information.The POOL-ID designated in the instruction command is set as the POOL-ID351301 of the obtained LDEV-specific information.

Next, the configuration control program 3503 changes the state of thePOOL-ID from “POOL being expanded” to “POOL valid” in the POOLmanagement information 3521 (a step S2114).

Returning to FIG. 12A, upon completion of the above processing, thecommand control program 3501 notifies the storage system managementapparatus 20 of the success of the command (the step S2015).

Received response from the command by the storage system 30 (the stepS2016), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

A storage pool is expanded through this processing.

FIG. 21 is a flow chart for scale down of a storage pool.

Storage pool scale down is processing to shrink the capacity of astorage pool by removing, from the storage pool, first type LDEVs thathave been set in the storage pool and thus reducing the first type LDEVcount of the storage pool.

Storage pool scale down is executed by the storage configurationmanagement program 2404 of the storage system management apparatus 20.

The storage system management apparatus 20 and the command controlprogram of the storage system 30 execute their respective processingdescribed above with reference to FIG. 12A. That is, in the first stepof the processing, the administrator inputs information on a first typeLDEV to be removed from a storage pool (the step S2001). The storageconfiguration management program 2404 sends, to the storage system 30,an instruction command containing the information set by theadministrator to scale down a storage pool (the step S2002). In thestorage system 30, the command control program 3501 receives thiscommand (the step S2003). The command control program 3501 rejects thereceived instruction command in the case where what is instructed by thecommand is not valid (the step S2004).

When the received instruction command is about scaling down a storagepool, the command control program 3501 forwards the received instructioncommand to the pool control program 3507. The pool control program 3507receives the instruction command and executes storage pool scale downprocessing (the step S2005).

Referring now to FIG. 21, the pool control program 3507 first checkswhether the POOL-ID designated in the instruction command is valid ornot. The pool control program 3507 then obtains, from the POOLmanagement information 3521, POOL-specific information for the POOL-IDdesignated in the instruction command to check whether or not the POOLstate field in the obtained POOL-specific information says “valid” (astep S2206). In the case where the POOL-ID is invalid, or the POOL isnot in a valid state (for example, when the POOL is invalid, beingexpanded, or being scaled down), the instruction command is rejected.

The instruction command is rejected also when data is in the first typeLDEV that is to be removed from the storage pool and there is no spaceto evacuate the data to in other storage areas of the storage system 30.

Next, the pool control program 3507 sets “POOL being scaled down” to thestate field of the obtained POOL-specific information (a step S2207).

The pool control program 3507 next obtains LDEV-specific information ofthe first type LDEV designated in the instruction command, that is,LDEV-specific information of the first type LDEV to be removed from thestorage pool as instructed by the instruction command, and deletes thePOOL-ID from this LDEV-specific information (a step S2208). The poolcontrol program 3507 next sets the capacity, the free capacity, athreshold, a POOL-VOL count, and a POOL-VOL device list to thePOOL-specific information for the POOL-ID designated in the instructioncommand (a step S2209). As the POOL-VOL count, the total count of firsttype LDEVs after scale down is set to the POOL-specific information. Asthe POOL-VOL device list, information of first type LDEVs that remainafter scale down is set to the POOL-specific information.

Next, in the case where data is stored in a first type LDEV that is tobe removed from the storage pool, the pool control program 3507 copiesthe data to a free area of another first type LDEV (a step S2210). Thefree area to which the data is to be copied may be in a first type LDEVthat is set in the same storage pool, or may be in a first type LDEVthat is set in a different storage pool or in no storage pool. Next, thePSCB 3524 of a first type LDEV that is to be removed from the storagepool is deleted from the VVOL-DIR 3523 (a step S2211). “Unused” is setto the deleted PSCB 3524.

Through this processing of the pool control program 3507, an LDEV isremoved from a storage pool and the storage pool is thus scaled down.

After the storage pool is scaled down, the configuration control program3503 sets the LDEV management information 3512 (a step S2212).LDEV-specific information of the first type LDEV that has been removedfrom the storage pool is obtained from the LDEV management information3512. An identifier (POOL-VOL attribute) stored as the device attribute35128 is deleted from the obtained LDEV-specific information. A POOL-IDstored as the POOL-ID 351301 is also deleted from the obtainedLDEV-specific information.

Next, the configuration control program 3503 changes the state of thePOOL-ID from “POOL being scaled down” to “POOL valid” in the POOLmanagement information 3521 (a step S2213).

Returning to FIG. 12A, upon completion of the above processing, thecommand control program 3501 notifies the storage system managementapparatus 20 of the success of the command (the step S2015).

Received response from the command by the storage system 30 (the stepS2016), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

A storage pool is scaled down through this processing.

FIG. 22 is a flow chart for elimination of a storage pool.

Storage pool elimination is processing to eliminate a storage pool byremoving from the storage pool every first type LDEV that is set in thestorage pool.

Storage pool elimination is executed by the storage configurationmanagement program 2404 of the storage system management apparatus 20.

The storage system management apparatus 20 and the command controlprogram of the storage system 30 execute their respective processingdescribed above with reference to FIG. 12A. In the first step of theprocessing, the administrator inputs information on a storage pool to beeliminated (the step S2001). The storage configuration managementprogram 2404 sends, to the storage system 30, an instruction commandcontaining the information set by the administrator to eliminate astorage pool (the step S2002). In the storage system 30, the commandcontrol program 3501 receives this command (the step S2003). The commandcontrol program 3501 rejects the received instruction command in thecase where what is instructed by the command is not valid (the stepS2004).

When the received instruction command is about eliminating a storagepool, the command control program 3501 forwards the received instructioncommand to the pool control program 3507. The pool control program 3507receives the instruction command and executes storage pool eliminatingprocessing (the step S2005).

Referring now to FIG. 22, the pool control program 3507 first checkswhether the POOL-ID designated in the instruction command is valid ornot. The pool control program 3507 then obtains, from the POOLmanagement information 3521, POOL-specific information for the POOL-IDdesignated in the instruction command to check whether or not the POOLstate field in the obtained POOL-specific information says “valid” (astep S2306). In the case where the POOL-ID is invalid, or the POOL isnot in a valid state (for example, when the POOL is invalid, beingexpanded, or being scaled down), the instruction command is rejected.

The instruction command is rejected also when data is stored in a firsttype LDEV that is set in the storage pool of the POOL-ID designated inthe instruction command. This is because once a storage pool iseliminated, data of a first type LDEV set in the storage pool is lost.

Next, the pool control program 3507 sets “POOL being eliminated” to thestate field of the obtained POOL-specific information (a step S2307).

The pool control program 3507 next checks whether the LDEV numberdesignated in the instruction command can be put into use or not (a stepS2308).

Specifically, in the case where the first type LDEV that is identifiedby the LDEV number designated in the instruction command is blocked orbeing formatted, the first type LDEV cannot be put into use andaccordingly the instruction command is rejected (a step S2309).

The first type LDEV that is identified by the LDEV number designated inthe instruction command is not available, so the instruction command isrejected also when the first type LDEV is already in use (for example,when a path has already been defined for the first type LDEV, when thecopy function or the like is using the first type LDEV, or when thefirst type LDEV is put aside as where data is to be copied next) (a stepS2310).

When the instruction command is accepted, the pool control program 3507initializes all of the capacity, free capacity, threshold, POOL-VOLcount, and POOL-VOL device list of the POOL-specific information for thePOOL-ID designated in the instruction command (a step S2311).

Through this processing of the pool control program 3507, a storage poolis eliminated.

After the storage pool is eliminated, the configuration control program3503 sets the LDEV management information 3512 (a step S2312).LDEV-specific information of a first type LDEV that has belonged to theeliminated storage pool is obtained from the LDEV management information3512. An identifier (POOL-VOL attribute) stored as the device attribute35128 is deleted from the obtained LDEV-specific information. A POOL-IDstored as the POOL-ID 351301 is also deleted from the obtainedLDEV-specific information.

Next, the configuration control program 3503 changes the state of thePOOL-ID from “POOL being eliminated” to “POOL undefined” in the POOLmanagement information 3521 (a step S2313).

Returning to FIG. 12A, upon completion of the above processing, thecommand control program 3501 notifies the storage system managementapparatus 20 of the success of the command (the step S2015).

Received response from the command by the storage system 30 (the stepS2016), the storage configuration management program 2404 of the storagesystem management apparatus 20 ends the processing.

A storage pool is eliminated through this processing.

Access to a virtual volume from the host computer 10 will be describednext.

FIGS. 23A and 23B are flow charts of processing executed when the hostcomputer 10 makes a data read request to a target device in the storagesystem 30.

The host computer 10 sends an I/O request with a target device addressdesignated. This I/O request is a data read request.

In the storage system 30, the command control program 3501 receives anI/O request from the host computer 10. In the case where what isrequested by the received I/O request is invalid, the request isrejected. Otherwise, the I/O request is analyzed (a step S3401). As aresult of the analysis, the command control program 3501 knows that theI/O request is a data read request.

Next, the command control program 3501 obtains, from the receivedrequest, the address of a target device from which data is to be read (astep S3402).

The command control program 3501 next executes cache hit/miss judgingprocessing (a step S3403). Specifically, the command control program3501 consults the storage cache memory 32 to determine whether or notthe requested data is in an area corresponding to the obtained address.

When it is judged as a cache hit, the command control program 3501 readsdata out of the corresponding area of the storage cache memory 32, andsends the read data to the host computer 10 (a step S3409). Then thecommand control program 3501 sends a read request completion report tothe host computer 10 (a step S3410) and ends the processing.

On the other hand, when it is judged as a cache miss, the commandcontrol program 3501 first allocates an area of the storage cache memory32 to a slot of a VDEV that corresponds to the address designated in therequest (a step S3404).

The command control program 3501 next judges whether the VDEV thatcorresponds to the address designated in the request is a first typeVDEV or a second type VDEV (a step S3405).

When the VDEV is judged as a first type VDEV, the processing moves to astep S3413 of FIG. 23B.

When the VDEV is judged as a second type VDEV, the command controlprogram 3501 obtains, via the pool control program 3507, the address ofthe second type VDEV in a POOL-VOL (a step S3406).

Next, the command control program 3501 judges whether data stored at theobtained address is readable or not (a step S3407). Specifically, thecommand control program 3501 judges whether the state of a POOL-VOLcorresponding to the obtained address is normal or not. In the casewhere the POOL-VOL is in a failure-induced blocked state and data cannotbe read out, the command control program 3501 sends an I/O error messageto the host computer 10 (a step S3408).

In the case where the POOL-VOL is in a normal state or a punctureblocked state and data can be read out, cache hit/miss in the POOL-VOLis judged (a step S3411). Specifically, the command control program 3501consults the storage cache memory 32 to determine whether or not therequested data is in an area corresponding to the POOL-VOL.

When it is judged as a cache hit, the command control program 3501 firstnotifies the cache control program 3509 of an address at which therequested data is stored in the storage cache memory 32 (a step S3415).

The cache control program 3509 allocates the area of the storage cachememory 32 to a slot of a second type VDEV that corresponds to thevirtual volume address designated in the request (a step S3416).

The cache control program 3509 then copies the requested data to theallocated area of the storage cache memory 32 from the address in thestorage cache memory 32 that corresponds to the address in the POOL-VOLat which the requested data is stored (a step S3417). As the datacopying is completed, the cache control program 3509 notifies thecommand control program 3501 of the data copy completion (a step S3418).

Notified of the data copy completion, the command control program 3501reads data out of the corresponding cache memory area and sends the readdata to the host computer 10 (a step S3409). Then the command controlprogram 3501 sends a read request completion report to the host computer10 (a step S3410) and ends the processing.

On the other hand, when it is judged in the step S3411 as a cache miss,the command control program 3501 first consults the address managementtable 3511 to obtain an address in the PDEV 34 that corresponds to theaddress in the POOL-VOL at which the requested data is stored. Thecommand control program 3501 then notifies the disk I/O program 3505 ofthe obtained address, the length of the requested data, and the addressin the virtual volume that is designated in the request (a step S3412).

Notified of the addresses and the data length, the disk I/O program 3505reads the requested data at the address in the PDEV 34, and copies theread data to the area of the storage cache memory 32 that is allocatedin the step S3404 (the step S3413). As the data copying is completed,the disk I/O program 3505 notifies the command control program 3501 ofthe data copy completion (a step S3418).

Notified of the data copy completion, the command control program 3501reads data out of the corresponding cache memory area and sends the readdata to the host computer 10 (the step S3409). Then the command controlprogram 3501 sends a read request completion report to the host computer10 (the step S3410) and ends the processing.

Through the above processing, a data read request made by the hostcomputer 10 is completed.

Described next is how a data write request is processed.

FIGS. 24A to 24C are flow charts of processing executed when the hostcomputer 10 makes a data write request to a target device in the storagesystem 30.

The host computer 10 sends an I/O request with a target device addressdesignated. This I/O request is a data write request.

In the storage system 30, the command control program 3501 receives anI/O request from the host computer 10. In the case where what isrequested by the received I/O request is invalid, the request isrejected. Otherwise, the I/O request is analyzed (a step S3101). As aresult of the analysis, the command control program 3501 knows that theI/O request is a data write request.

Next, the command control program 3501 obtains, from the received writerequest, the address of a target device in which data is to be written(a step S3102).

The command control program 3501 next judges whether the VDEV thatcorresponds to the obtained address is a first type VDEV or a secondtype VDEV (a step S3103).

When the VDEV is judged as a first type VDEV, the processing moves to astep S3107.

When the VDEV is judged as a second type VDEV, the state of a POOL-VOLused as the second type VDEV is obtained (a step S3104). The commandcontrol program 3501 judges whether the second type VDEV correspondingto the POOL-VOL is in a blocked state or not (a step S3105). When thesecond type VDEV is in a blocked state, the VDEV cannot be accessed andaccordingly the command control program 3501 sends an I/O error messageto the host computer 10 (a step S3106).

When it is judged that the second type VDEV is not blocked, the commandcontrol program 3501 assigns an area of the storage cache memory 32 tothe address designated in the request (the step S3107).

Next, the command control program 3501 sends, to the host computer 10that has made the request, a message saying that write data can betransferred (a step S3108). Receiving the message, the host computer 10sends write data to the storage system 30.

The command control program 3501 receives the write data sent by thehost computer 10 (a step S3109), and writes the write data in the areain the storage cache memory 32 that is assigned in the step S3107 (astep S3110).

Upon finishing writing the write data in the storage cache memory 32,the command control program 3501 sends a write request completion reportto the host computer 10 (a step S3111) and ends the processing.

Meanwhile, the cache control program 3509 is monitoring whether thestorage cache memory 32 has write data that is unwritten in a diskdevice (PDEV 34) (a step S3201 of FIG. 24B).

In the case where unwritten write data is detected, the cache controlprogram 3509 judges whether the volume in which the write data is to bewritten is a virtual volume or not (a step S3202). Specifically, thecache control program 3509 judges whether a slot number of a VDEV thatcorresponds to the storage cache memory 32 is of a first type VDEV or asecond type VDEV.

When it is judged that the volume in which the write data is to bewritten is not a virtual volume, in other words, when it is judged thatthe write data is to be written in a first type VDEV, the cache controlprogram 3509 instructs the disk I/O program 3505 to write the data inthe PDEVs 34, 34, 34 . . . . Receiving the instruction, the disk I/Oprogram 3505 writes the data in the disks (a step S3203).

On the other hand, when it is judged that the volume in which the writedata is to be written is a virtual volume, in other words, when it isjudged that the write data is to be written in a second type VDEV, thecache control program 3509 sends, to the pool control program 3507, anallocation request for allocating a slot of the second type VDEV inwhich the write data is to be written to a POOL-VOL (a step S3204).

Receiving the allocation request, the pool control program 3507 firstjudges whether or not any POOL-VOL has been allocated to the second typeVDEV which is a virtual volume (a step S3205).

When it is judged that a POOL-VOL has already been allocated to thesecond type VDEV, the PSCB 3524 of this POOL-VOL is consulted to obtaina corresponding first type VDEV slot. The obtained VDEV slot is notifiedto the command control program 3501 (a step S3206).

The command control program 3501 judges whether or not the first typeVDEV slot has been allocated to an area of the storage cache memory 32(a step S3207).

When it is judged that the slot has been allocated to an area of thestorage cache memory 32, the command control program 3501 copies thewrite data to the allocated area of the storage cache memory 32 (a stepS3208).

When it is judged that the slot has not been allocated to an area of thestorage cache memory 32, the command control program 3501 allocates anarea corresponding to the first type VDEV slot to the storage cachememory 32. The command control program 3501 then copies the write datato the allocated area (a step S3209).

On the other hand, when it is judged in the step S3205 that no POOL-VOLhas been allocated to the second type VDEV, the pool control program3507 first consults the POOL management information 3521 to check theremaining size of a POOL-VOL and determine whether the POOL-VOL hasenough capacity left to store the write data (a step S3210).

When it is judged that the remaining size of the POOL-VOL is enough, thepool control program 3507 allocates the PSCB 3524 of the POOL-VOL to theVVOL-DIR 3523 of the virtual volume. In this way, an area of the virtualvolume is newly allocated to the POOL-VOL (a step S3211). Then theremaining size in the POOL management information 3521 is changedaccordingly (a step S3212), and the processing moves to the step S3207.

On the other hand, when it is judged that the remaining size of thePOOL-VOL is not enough, the pool control program 3507 changes what thestate field in the POOL management information 3521 says to “punctureblocked” (a step S3213). Then the pool control program 3507 notifies thestorage system management apparatus 20, as well as the host computer 10that has made the I/O request, of the puncture blockage (a step S3214)and ends the processing.

Through the above processing, a data write request made by the hostcomputer 10 is completed.

When detecting in the step S3213 of FIG. 24B that the POOL-VOL is in apuncture blocked state (a step S3301 of FIG. 24C), the pool controlprogram 3507 first judges whether or not there is a first type LDEV thatcan be added to this POOL-VOL (a step S3302). Specifically, the poolcontrol program 3507 judges whether or not there is an unused first typeLDEV among first type LDEVs set in other POOL-VOLs (POOL-IDs) than thePOOL-VOL that is in a puncture blocked state.

When it is judged that there is a first type LDEV that can be added, thepool control program 3507 adds this first type LDEV to the POOL-VOL andexecutes expansion of the storage pool (a step S3306). The pool controlprogram 3507 then checks the new free area of the POOL-VOL (a stepS3307). Once it is confirmed that a sufficient area is secured, thepuncture blockage of the POOL-VOL is canceled and the POOL-VOL isrecovered (a step S3308).

When it is judged that there is no first type LDEV that can be added tothe POOL-VOL, the pool control program 3507 judges whether or not datain the POOL-VOL that is in a puncture blocked state can be moved toanother POOL-VOL that has a free area (a step S3303).

When it is judged that the data cannot be moved out, the pool controlprogram 3507 newly sets a first type LDEV in the storage pool (a stepS3304), and the processing returns to the step S3302.

When it is judged that the data can be moved out, the pool controlprogram 3507 moves the data to a POOL-VOL that has a free area (a stepS3305). Then the puncture blockage of the POOL-VOL is lifted and thePOOL-VOL is recovered (the step S3308).

Through the above processing, a necessary capacity is secured for aPOOL-VOL of a storage pool when the POOL-VOL does not have enoughstorage area.

Described next is how a failure in a disk drive device (PDEV) isprocessed.

FIG. 25 is a flow chart for when a disk failure occurs.

The disk I/O program 3505 reads data out of or write data into the PDEV34 as instructed. In the case where data is unsuccessfully read out ofthe PDEV 34, the disk I/O program 3505 retries the data reading. After agiven number of retries fails, the disk I/O program 3505 judges that thePDEV 34 is suffering from some kind of failure, and notifies the drivediagnostic program 3510 of the detection of a failure in the disk deviceof the PDEV 34 from which data is to be read as requested by the readrequest.

Similarly, in the case where data write fails, the disk I/O program 3505retries the data writing. After a given number of retries fails, thedisk I/O program 3505 notifies the drive diagnostic program 3510 of thedetection of a failure in the disk device of the PDEV 34 into which datais to be written as requested by the write request.

Meanwhile, the drive diagnostic program 3510 regularly starts updiagnostic processing to make diagnosis of a failure occurring in thedisk device of the PDEV 34.

When notified of detection of a failure in the disk device by the diskI/O program 3505 or when detecting a disk device failure through thediagnostic processing (a step S4201), the drive diagnostic program 3510consults the address management table 3511 to obtain the VDEV number ofa first type VDEV to which the PDEV 34 containing the failed disk devicebelongs (a step S4202).

The address management table is again consulted to obtain disk devicesof the PDEVs 34, 34, 34 . . . that constitute the first type VDEV havingthe obtained VDEV number. For every disk device obtained, whether thereis a failure or not is checked. In the case where there are morefailures than allowed by the redundancy set to this VDEV, the VDEV isblocked. For instance, in the case where two disk devices belonging tothe same parity group suffer a failure in a RAID configuration that hastwo data disks and one parity, it is unlikely that data of this paritygroup is recovered. Therefore, a VDEV to which the disk devices belongis blocked (a step S4203). Next, the pool control program 3507 instructsthe configuration control program 3503 to block the VDEV. Theconfiguration control program 3503 sets “blocked” to the attribute fieldof VDEV-specific information for the VDEV number of this first typeVDEV. The VDEV is thus blocked (a step S4204).

The pool control program 3507 next instructs the configuration controlprogram 3503 to block the LDEV. The configuration control program 3503sets “blocked” to the attribute field of LDEV-specific information forthe LDEV number of the first type LDEV. The LDEV is thus blocked (a stepS4205).

Next, whether the blocked LDEV is set in a storage pool or not isjudged. The pool control program 3507 first consults POOL-ID containedin the LDEV-specific information for the LDEV number of the first typeLDEV. When it is judged that the LDEV is set in a POOL-VOL, the poolcontrol program 3507 instructs the configuration control program 3503 toblock the POOL-VOL. The configuration control program 3503 sets thestate of the POOL-VOL of a storage pool that is identified by thePOOL-ID to “blocked”. The POOL-VOL is thus blocked (a step S4206).

The pool control program 3507 then notifies the host computer 10 and thestorage system management apparatus 20 of the occurrence of a failureand blockage of the POOL-VOL (a step S4207).

In the case where there is a failure in a disk device, a storage pool isblocked through the above processing.

Described next in FIG. 26 is processing for recovery from a failure in adisk drive device (PDEV).

When notified of occurrence of a failure and blockage of a POOL-VOL bythe storage system 30, the storage system management apparatus 20notifies the administrator of the failure and the blockage (a stepS4101).

Notified of the failure and the blockage, the administrator replaces thefailed disk drive device of the storage system 30 (a step S4102).

The configuration control program 3503 of the storage system 30 detectsthat the failure of the disk drive device is eradicated by replacing thedisk drive device. Then a first type VDEV in a blocked state isrecovered (a step S4103) and a first type LDEV in a blocked state isrecovered (a step S4104). A POOL-VOL in a blocked state is alsorecovered (a step S4105).

A POOL-VOL recovers from blockage through the above processing.

As has been described, in a computer system according to the firstembodiment of this invention, a second type VDEV, which is a virtualarea, is set to set a second type LDEV. The second type LDEV isassociated with a first type LDEV constituted of the PDEV 34, which is aphysical device, to thereby make the second type LDEV usable as aphysical device storage area. The host computer 10 accesses the secondtype LDEV as a virtual volume. The association between the first typeLDEV and the second type LDEV is set by allocating the PSCB 3524 to theVVOL-DIR 3523. By changing allocation between the PSCB 3524 and theVVOL-DIR 3523, storage areas of a virtual volume can dynamically bechanged. Thus a virtual volume can be set to have a capacity larger thanthe total storage capacity of physical devices provided in the storagesystem 30, and data in a computer system is accessed with an enhanceddegree of freedom.

The disk I/O program 3505 in the storage system 30 receives an I/Orequest from the host computer 10 and, in the case where a device to beaccessed as requested by the I/O request is a first type LDEV set in astorage pool, rejects the request. In other words, the disk I/O program3505 blocks access from the outside to a first type LDEV that isallocated to a second type LDEV as a virtual volume. Thus, unwaryacceptance of access to a first type LDEV that corresponds to a virtualvolume can be avoided and security of the storage system is improved.

The use of a VDEV, which is a device of this invention having a storagearea, and an LDEV, which is defined from the VDEV, makes it possible toexpand/scale down the capacity of a POOL on an LDEV basis without beingrestrained by the capacity of physical PDEVs.

The LDEV itself, which is defined from the VDEV, can be defined as alogical storing unit having an arbitrary capacity regardless of thecapacity of PDEVs.

The VDEV and LDEV of this invention also facilitate introduction ofstorage system management software that can manage, on a device basis,expansion/scale down of a POOL and the individualities of a POOL (forexample, a POOL specialized for sequential access).

Second Embodiment

Now, a computer system according to a second embodiment of thisinvention is described.

In this embodiment, the computer system is built as described in thefirst embodiment and, at the time the power is turned off, the storagesystem 30 evacuates management information to an area set in a storagepool. This area is called a system area.

FIG. 27 is an explanatory diagram of a storage pool and the system areaaccording to this embodiment.

The configuration of the system area is stored in the system areainformation 3525.

The system area information 3525 contains a POOL usage amount counter35251 and an entry 35252.

The POOL usage amount counter 35231 indicates LDEV informationassociated with an LDEV of a storage pool. The entry 35252 holds LDEVconfiguration information of the PVOL 800.

The entry 35252 contains an LDEV number (LDEV #) 35253, a PVOL address35254, a POOL-VOL address 35255, a PSCB forward pointer 35256 and a PSCBbackward pointer 35257.

Stored as the LDEV number (LDEV #) 35253 is the identifier of the LDEV.The PVOL address 35254 indicates the address of the LDEV in the PVOL.

Stored as the POOL-VOL address 35255 is, in the case where the LDEV isallocated to an LDEV of the POOL-VOL 900, the identifier of the POOL-VOL900.

In the case where the LDEV is allocated to an LDEV of the POOL-VOL 900,identifiers are stored as the PSCB forward pointer 35256 and the PSCBbackward pointer 35257. In the case where the LDEV is not allocated toany POOL-VOL, “NULL” is stored in the fields of the pointers 35256 and35257.

Management information to be evacuated to the system area is informationstored in the storage cache memory 32 or in the shared memory 33.Specifically, the management information is cache data stored in thestorage cache memory 32 that is not destaged yet. The managementinformation is also storage area configuration information (e.g., VDEV,LDEV. volume, storage pool, and path definition information) of thestorage system 30.

As the power is turned off, the storage system 30 evacuates themanagement information to the system area.

At the time the power is turned off, the storage system 30 finds a freePSCB queue from among the PSCBs 3524, 3524, 3524 . . . , and obtains anunused area in a storage pool. The unused area is assigned as the systemarea. Specifically, the PSCB 3524 that is a free PSCB queue is allocatedto each entry 35252 of the system area information 3525. Then themanagement information is stored in the assigned system area.Information (address and size) of the system area is stored in thenon-volatile memory 330 of the storage system 30.

Thereafter, when the power is turned on, the storage system 30 firstconsults the non-volatile memory 330 to obtain information of the systemarea where the management information is stored. The storage system 30then reads the management information stored in the system area andboots the system again. After the system is booted anew, allocation ofthe PSCB 3524 to the system area is cancelled to return the PSCB 3524 toa free PSCB queue.

As has been described, in a computer system according to the secondembodiment of this invention, out of LDEVs that serve as storage areasof a PVOL, unused ones are set as the system area. A special advantageof the second embodiment is that, in the case where the system area isnot set in advance as in emergencies where the power is turned offunexpectedly, system information is stored in an unused storage areathat is obtained by searching the VVOL-DIR 3524. The computer system isthus improved in usability.

While the present invention has been described in detail and pictoriallyin the accompanying drawings, the present invention is not limited tosuch detail but covers various obvious modifications and equivalentarrangements, which fall within the purview of the appended claims.

1. A storage system coupled to a host computer and a managementapparatus, comprising: a plurality of storage devices accessed by thehost computer; and a control unit that controls the plurality of storagedevices, wherein the control unit: sets a first-type virtual devicecorresponding to the plurality of storage devices, the first-typevirtual device including a plurality of first-type logical devices,wherein the plurality of first-type logical devices includes at leastone first first-type logical device and at least one second first-typelogical device, the at least one first first-type logical device beingallocated to a volume accessible by the host computer; sets asecond-type virtual device including a second-type logical device, whichis a virtual volume accessible by the host computer; and allocates eachsecond first-type logical device, of the plurality of first-type logicaldevices, to a storage pool, and wherein when the control unit receivesfirst write data for the first first-type logical device included in thefirst-type virtual device, the control unit stores the first write datain the first first-type logical device, and when the control unitreceives second write data for the second-type logical device includedin the second-type virtual device, the control unit associates at leastone second first-type logical device, of the first-type virtual deviceand allocated to the storage pool, with the second-type logical device,and stores the second write data in the second first-type logicaldevice.
 2. A storage system according to claim 1, wherein the storagesystem further comprises a memory storing management information, whichincludes cache data to be destaged and configuration informationregarding the configuration of the respective virtual devices, logicaldevices and volumes, wherein in response to the power of the storagesystem being turned off, the storage system: locates an unused area inthe storage pool; assigns the unused portion as a system area; evacuatesthe management information stored in the memory to the system area; andstores in the memory the address and size of the system area, andwherein in response to the power of the storage system subsequentlybeing turned back on, the storage system: consults the memory to obtaininformation about the assigned system area where the managementinformation is stored; reads the management information in the assignedsystem area; boots the system; and cancels the assignment of the unusedarea as a system area.
 3. The storage system according to claim 2,wherein the control unit: sets “pool volume attribute” as a deviceattribute of a second first-type logical device; and allocates anaddress of the second first-type logical device having the deviceattribute of “pool volume attribute” to an address of the second-typelogical device, thereby associating the second first-type logical devicewith the second-type logical device.
 4. The storage system according toclaim 3, wherein the control unit sets an identifier of the storage poolto the second first-type logical device, thereby setting “pool volumeattribute” as the device attribute of the second first-type logicaldevice.
 5. The storage system according to claim 3, wherein the controlunit sets “pool volume attribute” as the device attribute of anotherfirst-type logical device, thereby increasing the capacity of thestorage pool.
 6. The storage system according to claim 3, wherein thecontrol unit is configured to cancel the device attribute of the secondfirst-type logical device whose device attribute has been set to “poolvolume attribute”, thereby reducing the capacity of the storage pool. 7.The storage system according to claim 6, wherein the control unit:determines whether the second first-type logical device whose deviceattribute has been set to “pool volume attribute” is storing data whenthe device attribute is to be cancelled; and does not cancel the deviceattribute of the second first-type logical device whose device attributehas been set to “pool volume attribute” when it is determined that datais stored in the second first-type logical device.
 8. The storage systemaccording to claim 3, wherein the control unit is configured to cancelthe device attribute of each first-type logical device whose deviceattribute has been set to “pool volume attribute”, thereby eliminatingthe storage pool.
 9. The storage system according to claim 3, whereinfirst configuration information including an identifier of thefirst-type logical device and second configuration information includingan identifier of the second-type logical device are provided, andwherein the control unit stores the identifier of the first-type logicaldevice from the first configuration information in the secondconfiguration information, thereby associating the second-type logicaldevice with the second first-type logical device.
 10. The storage systemaccording to claim 9, wherein the first configuration informationfurther includes an address of the first-type logical device, andidentifiers of areas preceding and following the first-type logicaldevice, and wherein the second configuration information furtherincludes an address of the second-type logical device.
 11. The storagesystem according to claim 3, wherein the control unit provides anassociation between the virtual volume, a connection port number of aconnection port through which the computer accesses the virtual volume,and route information, thereby setting the virtual volume to beaccessible by the host computer.
 12. The storage system according toclaim 3, wherein the control unit: specifies the type of logical devicecorresponding to an address designated in a read request upon receptionof a data read request from the host computer; specifies which secondfirst-type logical device is allocated to a second-type logical device,when the specified type of logical device is a second-type logicaldevice; and reads data designated in the read request from the specifiedsecond first-type logical device.
 13. The storage system according toclaim 3, wherein the control unit: specifies the type of logical devicelocated at an address designated in a write request, upon reception of adata write request from the computer; specifies which first-type logicaldevice is allocated to a second-type logical device, when the specifiedtype of logical device is a second-type logical device; and writes datadesignated in the write request to the specified first-type logicaldevice.
 14. The storage system according to claim 3, wherein the controlunit: specifies the type of logical device located at an addressdesignated in a write request, upon reception of a data write requestfrom the computer; and allocates a second first-type logical devicehaving a device attribute of “pool volume attribute” to the second-typelogical device, when the specified type of logical device is asecond-type logical device and when no first-type logical device isallocated to the second-type logical device.
 15. The storage systemaccording to claim 3, wherein the control unit: specifies the type oflogical device associated with an address designated in a request, uponreception of the request from the computer; and rejects the request whenthe specified type of logical device is a first-type logical devicewhose device attribute is set to “pool volume attribute”.
 16. Thestorage system according to claim 3, wherein the control unit: upondetection of a failure in one of the plurality of storage devices,blocks a first-type virtual device corresponding to the one of theplurality of storage devices having the failure; blocks a first-typelogical device that is included in the first-type virtual devicecorresponding to the one of the plurality of storage devices having thefailure; and blocks the first-type logical device, when the deviceattribute of the first-type logical device is “pool volume attribute”.17. The storage system according to claim 3, wherein the control unit:stores storage system management information in a second first-typelogical device having a device attribute that is set to “pool volumeattribute”, at the time the power is turned off; and reads the storedmanagement information to boot the storage system when the power isturned on again after being turned off.
 18. The storage system accordingto claim 3, wherein the control unit: finds a second first-type logicaldevice other than the second first-type logical devices storing datafrom among first-type logical devices whose device attribute as been setto “pool volume attribute”, at the time the power is turned off; storesstorage system management information in the a second first-type logicaldevice found; and reads the stored management information to boot thestorage system, when the power is turned on again.
 19. A method ofchanging configuration of a storage system connected to a host computerand a management apparatus, the storage system comprising a plurality ofstorage devices accessed by the host computer and a control unit thatcontrols the storage system, the method comprising: a first step ofsetting a first-type virtual device, which includes a plurality offirst-type logical devices, and corresponds to the plurality of storagedevices, wherein the plurality of first type logical devices includes atleast one first first-type logical device and at least one secondfirst-type logical device, the at least one first first-type logicaldevice being allocated to a volume accessible by the host computer;setting a second-type virtual device including a second-type logicaldevice, which is a virtual volume accessed by the host computer; andallocating each second first-type logical device, of the plurality offirst-type logical devices, to a storage pool, wherein when the controlunit receives first write data for the first first-type logical deviceincluded in the first-type virtual device, the control unit stores thefirst write data in the first first-type logical device, and whereinwhen the control unit receives second write data for the second-typelogical device included in the second-type virtual device, the controlunit associates at least one second first-type logical device, of thefirst-type virtual device allocated to the storage pool, with thesecond-type logical device; and storing the second write data in thesecond first-type logical device.
 20. The method according to claim 19,wherein the storage system further comprises a memory storing managementinformation, which includes cache data to be destaged and configurationinformation regarding the configuration of the respective virtualdevices, logical devices and volumes, and wherein in response to powerto the storage system being turned off, the method further includes:locating an unused area in the storage pool; assigning the unusedportion as a system area; evacuating the management information storedin the memory to the system area; and storing in the memory the addressand size of the system area, and wherein in response to the power to thestorage system subsequently being turned back on, the method furtherincludes the steps of: consulting the memory to obtain information aboutthe assigned system area where the management information is stored;reading the management information in the assigned system area; bootingthe system; and canceling the assignment of the unused area as a systemarea.